<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page session="false"%>
<div class="col_5 col">
	<h1>${player.firstName} ${player.lastName}</h1>
	<div class="col_5 col">
		<form:form method="post" action="edit" commandName="player">
			<table>
				<tr>
					<td><form:label path="id">id: </form:label></td>
					<td><form:input path="id" readonly="true" /></td>
				</tr>
				<tr>
					<td><form:label path="firstName">first name: </form:label></td>
					<td><form:input path="firstName" /></td>
				</tr>
				<tr>
					<td><form:label path="lastName">last name
						</form:label></td>
					<td><form:input path="lastName" /></td>
				</tr>
				<tr>
					<td><form:label path="team">team
						</form:label></td>
					<td><form:select path="team.id" >
							<form:options items="${teamList}" itemValue="id"  itemLabel="name"  />
						</form:select></td>
				</tr>
				<tr>
					<td><form:label path="activeTweeter">active tweeter
						</form:label></td>
					<td><form:checkbox path="activeTweeter" /></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="save" /></td>
				</tr>
			</table>
		</form:form>
	</div>
</div>

